package design.chain;

public class ConcreteHandlerB extends Handler{
    @Override
    public void handleRequest(int request) {
        if (request < 20) {
            System.out.println("Handler B处理请求: " + request);
        } else if (nextHandler != null) {
            nextHandler.handleRequest(request);
        }
    }
}
